<template>
<div>
  <div>
    {{ title }}
    {{ show ? '展示' : '不展示'}}
  </div>
  <el-button @click="changeShowStatus">切换展示状态</el-button>
</div>

</template>

<script>
export default {
  props: {
    title: String,
    show: Boolean,
  },

  data() {
    return {
      // show: true,
    }
  },

  methods: {
    changeShowStatus() {
      this.$emit('update:show', !this.show)
      this.$emit('update:title', '哈哈哈')
    },
  },
}
</script>

<style>

</style>
